package com.loong.shop.model;

import com.loong.common.mybatis.entity.BaseEntity;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "goods_base")
public class GoodsBase extends BaseEntity {
    /**
     * 商品名称
     */
    private String name;

    /**
     * 分类
     */
    @Column(name = "category_id")
    private Long categoryId;
    /**
     * 品牌
     */
    @Column(name = "brand_id")
    private Long brandId;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 店铺id
     */
    @Column(name = "shop_id")
    private Long shopId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 销售状态
     */
    @Column(name = "sale_status")
    private Integer saleStatus;

    /**
     * 包装费
     */
    @Column(name = "packing_expense")
    private BigDecimal packingExpense;

    /**
     * 月销
     */
    @Column(name = "monthly_sale")
    private Integer monthlySale;

    /**
     * 点赞数
     */
    @Column(name = "like_num")
    private Long likeNum;

    /**
     * 是否多规格
     */
    @Column(name = "multiple_specifications")
    private Boolean multipleSpecifications;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 主要图片
     */
    @Column(name = "master_pic")
    private String masterPic;

    /**
     * 主视频
     */
    @Column(name = "master_video")
    private String masterVideo;

    /**
     * 推荐(0(false)表示默认，1(true)表示该商品为推荐商品)
     */
    private Boolean recommend;
}